package com.niiwoo.civet.user.dto.request;

import com.niiwoo.civet.user.enums.UserEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 资产端用户自动注册请求DTO
 *
 * @author liming
 * @date 2018-03-06 19:45
 */
@Getter
@Setter
@ToString
public class AssetAutoRegisterBaseReqDTO implements Serializable{

    private static final long serialVersionUID = 7166821337581136101L;

    @NotNull
    private UserEnum.RegisterChannel registerChannel;       //注册渠道来源
    @NotNull
    private String registerMobile;                          //登录手机号(未加密)
    @NotNull
    private String password;                                //密码哈希值
    @NotNull
    private String salt;                                    //盐值
    @NotNull
    private String idCard;                                  //身份证号码(未加密)
    @NotNull
    private String realName;                                //真实姓名

    private AssetUserExtInfoDTO assetUserExtInfoDTO;        //资产端渠道自动注册传递的额外信息实体
}
